package com.qf.spring1227.service.imlp;

import com.qf.spring1227.service.OnePieceParser;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

import java.io.IOException;

public class OnePieceServiceImpl01 implements OnePieceParser {
    @Override
    public String parseOnePiece() throws IOException {
        Document document = Jsoup.connect("https://manhua.fffdm.com/002/").get();

        Element element = document.selectFirst("li.pure-u-1-2.pure-u-lg-1-4");
        String text = element.text();
        return text;
    }
}
